<?php

use yii\db\Migration;

class m171114_014412_create_alter_reservation extends Migration
{
    public function safeUp()
    {
        $this->alterColumn('{{%reservation}}','teacher_id',$this->string(50)->defaultValue(null)->comment('老师id多个逗号隔开'));
    }


    public function safeDown()
    {
        $this->dropColumn('{{$reservation}}','teacher_id');
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m171114_014412_create_alter_reservation cannot be reverted.\n";

        return false;
    }
    */
}
